#ifndef MYPLUGIN_H
#define MYPLUGIN_H

#include <QObject>
#include <qgisplugin.h>
#include <qgisinterface.h>

class MyPlugin : public QObject, public QgisPlugin
{
    Q_OBJECT
public:
    MyPlugin(QgisInterface* interface,
             QString const &name = "",
             QString const &description = "",
             QString const &category = "",
             QString const &version = "",
             PluginType type = MapLayer );

    virtual ~MyPlugin();
public:
    void initGui() override;
    void unload() override;
public slots:
    void initFinished();
private:
    QgisInterface *interface{nullptr};
    QAction* action{nullptr};
};
#endif // MYPLUGIN_H
